package com.cleaningcloud.erp.domain;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 报溢对象 erp_ware_overflow
 *
 * @author cleaningcloud
 * @date 2024-12-02
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ErpWareOverflow extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 报溢ID
     */
    private Long wareOverflowId;

    /**
     * 报溢单号
     */
    @Excel(name = "报溢单号", sort = 1)
    private String wareOverflowOdd;

    /**
     * 报溢仓库ID
     */
    private Long wareId;

    /**
     * 报溢人ID
     */
    private Long wareOverflowPersonId;

    /**
     * 报溢时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报溢时间", width = 30, dateFormat = "yyyy-MM-dd", sort = 7)
    private Date wareOverflowTime;

    /**
     * 附件
     */
    private String attr;

    /**
     * 创建人ID
     */
    private Long createId;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人", sort = 8)
    private String createName;

    /**
     * 备注是否关闭
     */
    private String flag;

    /**
     * 审批状态(0待审批1已通过2被驳回)
     */
    @Excel(name = "审批状态", sort = 9, readConverterExp = "0=待审批,1=已通过,2=被驳回")
    private Integer approveStatus;

    /**
     * 审批人ID
     */
    private Long approveId;

    /**
     * 审批人名称
     */
    @Excel(name = "审批人", sort = 10)
    private String approveName;

    /**
     * 审批时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 11)
    private Date approveTime;

    /**
     * 驳回时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rejectTime;

    /**
     * 驳回原因
     */
    private String rejectReason;

    // 批量导出ids
    private String exportIds;

}
